package encheres.presentation.controleur;

import java.io.FileNotFoundException;
import java.io.IOException;

import org.omg.CORBA.ORBPackage.InvalidName;
import org.omg.CosNaming.NamingContextPackage.CannotProceed;
import org.omg.CosNaming.NamingContextPackage.NotFound;

import encheres.presentation.ui.CorbaManager;

public class CreationCompte {

	public String generatePassword(final String login) {
		return login;
	}
	
	public int creerNouvelUtilisateur(String login,
			String password, String nom, String adresse)
			throws FileNotFoundException, IOException, InvalidName,
			NotFound, CannotProceed,
			org.omg.CosNaming.NamingContextPackage.InvalidName {
		return CorbaManager.getManagerClient().creerCompte(login, password, nom, adresse);
	}
}
